package fr.cnam.projetSiw.client.core.mapper;

import com.google.gwt.activity.shared.Activity;
import com.google.gwt.activity.shared.ActivityMapper;
import com.google.gwt.place.shared.Place;

import fr.cnam.projetSiw.client.core.ClientFactory;
import fr.cnam.projetSiw.client.structure.pages.MenuActivity;

public class MenuMapper implements ActivityMapper
{

	
	private ClientFactory clientFactory;
	
	public MenuMapper(ClientFactory clientFactory) 
	{
		this.setClientFactory(clientFactory);
	}
	@Override
	public Activity getActivity(Place place)
	{
		return new MenuActivity(clientFactory);
	}
	
	
	public ClientFactory getClientFactory()
	{
		return clientFactory;
	}
	public void setClientFactory(ClientFactory clientFactory)
	{
		this.clientFactory = clientFactory;
	}

}
